package com.fdm.controller.bankcommand;

import com.fdm.model.exceptions.BankCommandException;

public class BankCommandFactory {
	public _BankManagerCommand createCommand(String fullQualifiedName)
			throws BankCommandException {
		if(fullQualifiedName==null)throw new BankCommandException();
		try {
			return (_BankManagerCommand) Class.forName(fullQualifiedName)
					.newInstance();
		} catch (InstantiationException e) {
		} catch (IllegalAccessException e) {
		} catch (ClassNotFoundException e) {
		}
		throw new BankCommandException();
	}
}
